package cn.wolfcode.feiggn;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feiggn.facback.SeckillProductFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name="seckill-service",fallback = SeckillProductFeign.class)
public interface SeckillProductFeignApi {

    @RequestMapping("/seckillProduct/queryVoTime")
    Result<List<SeckillProductVo>> querySecKillVo(@RequestParam("time") int time);

}
